home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / gem / l_0799 / 723 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.3 KB

  1. Date: Fri, 8 Jul 1994 09:50:06 -0400 (EDT)
  2. From: Timothy Miller <millert@undergrad.csee.usf.edu>
  3. Subject: RE: Gem Listing (fwd)
  4. To: gem-list@world.std.com
  5. In-Reply-To: <9407080836.AA14927@getafix.oasis.icl.co.uk>
  6. Message-Id: <Pine.3.87.9407080906.A17825-0100000@grad>
  7. Mime-Version: 1.0
  8. Precedence: bulk
  9.  
  10. Goemon:
  11.  
  12. ]WHAT is so INCREDIBLY DIFFICULT about using objc_find to locate the editable
  13. ]object under the mouse??  HERE IS SOME EXAMPLE CODE!!!!!!
  14. ]
  15. ]do {
  16. ]        /* Do your event thingie here and get mouse coords in mx and my */
  17. ]        object = objc_find(tree, mx, my);
  18. ]        if (tree[object].ob_flags & EDITABLE)
  19. ]                graf_mouse(TEXT_CRSR, 0L);
  20. ]        else
  21. ]                graf_mouse(ARROW, 0L);
  22. ]} while(!(exitobject));
  23. ]
  24. ]Total elapsed time : 0.003 microseconds
  25. ]
  26. ]WHAT IS SO DIFFICULT ABOUT THIS?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!  THIS CREATES
  27. ]THE *SAME* AMOUNT OF TIME THAT THE 1-PIXEL RECTANGLE CREATES!  WHY MUST YOU
  28. ]KEEP INSISTING ON THE HARD WAY OUT??  Are you *REALLY* a coder?
  29.  
  30. Who said it was difficult?  We're not talking about difficulty.  We were 
  31. talking about system overhead and wasted time.
  32.  
  33. What's difficult is making a larger-than-1-pixel rectangle so that your 
  34. app doesn't have to be called for every mouse movement, and system time 
  35. doesn't have to be wasted.
  36.  
  37.  
  38.